package com.woniuxy.yoga.progress.client;

import com.woniuxy.yoga.commons.core.model.Result;
import com.woniuxy.yoga.feign.config.FeignConfig;
import com.woniuxy.yoga.progress.model.dto.TeamCourseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "course-service",configuration = FeignConfig.class,path = "/course")
public interface CourseClient {

    /**
     * 团课id查询团课
     * @param teamCourseId 团课id
     * @return TeamCourseDTO
     */
    @GetMapping("/teamCourse/getByTeamCourseId/{teamCourseId}")
    Result<TeamCourseDTO> getByTeamCourseId(@PathVariable("teamCourseId") Integer teamCourseId);
}
